<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('AdminIndex/index')}">人员管理</a></li>
			<li><a href="{:url('AdminIndex/add')}">添加人员</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="get" action="{:url('AdminIndex/index')}">
            用户名:
            <input type="text" class="form-control" name="keywords" style="width: 120px;" value="{:input('request.keywords/s','')}" placeholder="请输入{:lang('USERNAME')}">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('AdminIndex/index')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
                    <th>{:lang('USERNAME')}</th>
					<th>账号</th>
                    <th>电话</th>
                    <th>身份证号</th>
                    <th>当前缴存单位</th>
                    <!-- <th>地区</th> -->
					<th>用户状态切换</th>
					<th width="140">{:lang('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				
				<foreach name="partner" item="vo">
				<tr>
                    <td>{$vo.id}</td>
                    <td>
						{$vo.name}
                    </td>
                    <td>
						{$vo.account}
					</td>
					<td>
						{$vo.tel}
					</td>
					<td>
						{$vo.idcard}
					</td>
					<td>
						{$vo.company}
					</td>
					<!-- <td>{$vo.area_value}</td> -->
					<td>
						<if condition="$vo['status'] eq 1">
							用户正常
                            <a class="btn btn-xs btn-danger js-ajax-dialog-btn" data-msg="确定停用吗？" href="{:url('AdminIndex/ban',array('id'=>$vo['id']))}">停用</a>
							<else/>
							用户已停用
                            <a class="btn btn-xs btn-success js-ajax-dialog-btn" data-msg="确定恢复吗？" href="{:url('AdminIndex/cancelBan',array('id'=>$vo['id']))}">恢复</a>
                        </if>
					</td>
					
					<td>
						<a class="btn btn-xs btn-primary" href='{:url("AdminIndex/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}基本信息</a>
						<a class="btn btn-xs btn-warning" href='{:url("AdminIndex/editMore",array("id"=>$vo["id"]))}'>编辑缴纳信息</a>
						<a class="btn btn-xs btn-success" href="javascript:parent.openIframeLayer('{:url('AdminIndex/records',array('id'=>$vo['id']))}','{$vo.name}',{area: ['800px', '600px']});">缴纳公积金</a>
						<a class="btn btn-xs btn-danger" href="{:url('AdminIndex/recordsList',array('id'=>$vo['id']))}">缴纳记录</a>
						
                       
                        
                        
							
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>